#include <stdio.h>
#include <string.h>

int    main()
{
    int t,k;
    char data[52];
    scanf( "%d", &t );
    for ( k = 0; k < t; k++ )
    {
        scanf( "%s", data );
        int i;
        for ( i = 0; i < strlen(data); i++)
        {
            data[i]++;
            if ( data[i] > 'Z' ) data[i] = 'A';
        }
        printf( "String #%d\n", k+1 );
        printf( "%s\n\n", data );
    }
    return 0;
}
